dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f3e579
)
Followup r93905 per comment on bug 30230
author
Sam Reed
<reedy@users.mediawiki.org>
Fri, 5 Aug 2011 14:55:53 +0000
(14:55 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Fri, 5 Aug 2011 14:55:53 +0000
(14:55 +0000)
Make text parameter of ApiExpandTemplates required
includes/api/ApiExpandTemplates.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiExpandTemplates.php
b/includes/api/ApiExpandTemplates.php
index
fc9a451
..
3fe586f
100644
(file)
--- a/
includes/api/ApiExpandTemplates.php
+++ b/
includes/api/ApiExpandTemplates.php
@@
-90,7
+90,10
@@
class ApiExpandTemplates extends ApiBase {
'title' => array(
ApiBase::PARAM_DFLT => 'API',
),
- 'text' => null,
+ 'text' => array(
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => true,
+ ),
'generatexml' => false,
'includecomments' => false,
);